/**
 * 
 */
package info.pablo.maven.tulebox.example;

import java.util.Random;


/**
 * @author pablo_guerrero
 *
 */
public class Dice{
    private Random rnd = new Random();
    private int diceType;
    public Dice(int diceType) {
        this.diceType = diceType;
}
   

		public int roll(){
			int result=0;
			result = rnd.nextInt(diceType)+1;
			return result;
		}


		
}